package com.it.springboot_day01demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 项目的主入口类
 */
@MapperScan("com.it.springboot_day01demo.mapper")//创建指定包下所有的mapper接口代理对象
@SpringBootApplication //因为@SpringBootApplication注解包含了@ComponentScan注解（扫描包），扫描范围是项目主入口类的子集目录
                       //所以项目代码必须在主入口类的子集目录下才会被加载
@EnableCaching//开启注解缓存
public class SpringbootDay01demoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDay01demoApplication.class, args);
    }
}
